package ace.cmp.security.api.exception;

import ace.cmp.core.enums.SystemCodeEnum;
import ace.cmp.core.exception.BusinessException;
import java.util.Map;

/**
 * @author caspar
 * @date 2023/9/5 15:42
 */
public class AuthenticationException extends BusinessException {
  public AuthenticationException() {
    super();
  }

  public AuthenticationException(String message) {
    super(message);
  }

  public AuthenticationException(String message, Throwable throwable) {
    super(message, throwable);
  }

  public AuthenticationException(Integer code, String message) {
    super(code, message);
  }

  public AuthenticationException(Integer code, String message, Throwable throwable) {
    super(code, message, throwable);
  }

  public AuthenticationException(
      Integer code, String message, Map<String, Object> data, Throwable throwable) {
    super(code, message, data, throwable);
  }

  public AuthenticationException(Integer code, String message, Map<String, Object> data) {
    super(code, message, data);
  }

  public AuthenticationException(Integer code, Map<String, Object> data) {
    super(code, SystemCodeEnum.BUSINESS_EXCEPTION.getDesc(), data);
  }

  public AuthenticationException(String message, Map<String, Object> data) {
    super(message, data);
  }

  public AuthenticationException(Integer code, Throwable throwable) {
    super(code, throwable);
  }
}
